package com.example.demo.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel
@Api(tags = "缓存对象")
@TableName("base_cache_repository")
public class CacheRepositoryEntity extends Model<CacheRepositoryEntity> implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	//菜单id
	@TableId(type = IdType.UUID)
	@ApiModelProperty(value = "唯一标识", name = "唯一标识" , hidden = true)	
	private String id;	
	
	@ApiModelProperty(value = "键", name = "键" )	
	private String objectKey;
	 
	@ApiModelProperty(value = "值", name = "值" )	
	private String objectValue;
	
	@ApiModelProperty(value = "描述内容", name = "描述内容" )
	private String objectDescription;
	 
	@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
	@ApiModelProperty(value = "过期时间", name = "过期时间" )	
	private Date expireTime;
	
}
